﻿using Newtonsoft.Json;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace NP.BPMReportPlatform.Entities.BPM_Business
{
    /// <summary>
    /// 生产单更改审批流程 主表
    /// </summary>
    [SugarTable("POCAPHeader")]
    public class POCAPHeader : BaseHead
    {
        /// <summary>
        /// 审批人名称
        /// </summary>
        public string Approver1Name { get; set; }

        /// <summary>
        /// 审批人ID
        /// </summary>
        public string Approver1Id { get; set; }
        /// <summary>
        /// 工厂
        /// </summary>
        public string Factory { get; set; }

        /// <summary>
        /// 修改同步结果
        /// </summary>
        public bool SyncResult1 { get; set; }

        /// <summary>
        /// 修改同步信息
        /// </summary>
        public string Message1 { get; set; }

        /// <summary>
        /// 备注同步结果
        /// </summary>
        public bool SyncResult2 { get; set; }

        /// <summary>
        /// 备注同步信息
        /// </summary>
        public string Message2 { get; set; }

        /// <summary>
        ///  行数据
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public List<POCAPHDetail> LineData { get; set; }

        /// <summary>
        /// 1单行模式，2带出子项模式 3批量模式
        /// </summary>
        public int? FormMode { get; set; }

        /// <summary>
        /// 批量修改的单据
        /// </summary>
        public string BatchPwsCode { get; set; }
    }
}
